import request from '@/utils/request.js'

export function login(username, password,cid) {
	return request.post({
		url: 'login',
		data: {
			username,
			password,
			cid
		}
	})
}

export function logout() {
	// 退出登录情况本地存储信息
	request.clearLocalStore();
	return request.post({
		url: 'logout'
	})
}

export function getInfo(token) {
	return request({
		url: '/user/info',
		method: 'get',
		params: {
			token
		}
	})
}
